import axios from '../http/htttp.js'
// 会员管理
export function Membershiplist (listed) {
  return axios({
    method: 'get',
    params: {
      _gp: 'admin.user',
      _mt: 'getUser',
      ...listed
    }
  })
}
// 状态
export function Userstatus (data) {
  return axios({
    method: 'post',
    params: {
      _gp: 'admin.user',
      _mt: 'updateStatus',
      ...data
    }
  })
}
// 编辑
export function edit (rewq) {
  return axios({
    method: 'post',
    params: {
      _gp: 'admin.user',
      _mt: 'updateUser',
      user: JSON.stringify(rewq)
    }
  })
}
// 删除
export function deletes (schu) {
  return axios({
    method: 'post',
    params: {
      _gp: 'admin.user',
      _mt: 'deleteUser',
      ...schu
    }
  })
}
